/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2024-05-09 11:02:48
 * @LastEditors: icymoon911 icymoon911@163.com
 * @LastEditTime: 2024-11-11 17:05:26
 * @FilePath: \ken147258.topayClient\src\api\other\order.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */


import request from "@/utils/request";
import { AxiosPromise } from "axios";

const URL = {
  getlist_redpack: '/redpack/getlist_redpack',
  getlist_record: '/redpack/getlist_record',
  update_record: '/redpack/update_record',
  setlucky: '/redpack/setlucky',
};

export function getlist_redpack(data: object): AxiosPromise<any> {
  return request({
    url: URL.getlist_redpack,
    method: "get",
    params: data,
  });
}

export function getlist_record(data: object): AxiosPromise<any> {
  return request({
    url: URL.getlist_record,
    method: "get",
    params: data,
  });
}
export function update_record(data: object): AxiosPromise<any> {
  return request({
    url: URL.update_record,
    method: "post",
    data: data,
  });
}

export function setlucky(data: object): AxiosPromise<any> {
  return request({
    url: URL.setlucky,
    method: "post",
    data: data,
  });
}
